import api from './index';

export const getList = () => {
  return api({
    url: '/tableTemplate/list',
    method: 'get',
  })
};
export const addModel = (params) => {
  return api({
    url: '/tableTemplate/add',
    method: 'post',
    data: params

  })
};
export const deleteModel = (params) => {
  return api({
    url: `/tableTemplate/delete/${params}`,
    method: 'delete',

  })
};

export const updateModel = (params) => {
  return api({
    url: '/tableTemplate/update',
    method: 'put',
    data: params

  })
};